#include "mainwindow.h"
#include <QApplication>
#include "log.h"

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    qDebug() << "QApplication thread " << a.thread();

    MainWindow w;
    w.show();
    w.setWindowTitle("RobotArmEyeSystem version1.0");

    setLogPath(LOG_FILE_NAME);
    qInstallMessageHandler(customLogMessageHandler);

    //每次开机自动清理过期5天的数据
    remove_old_log_file();

    return a.exec();
}
